
import Main from '../views/Main'
import Home from '../views/Home'
import Menu from '../views/Menu'
import Shopbag from '../views/Shopbag'
import My from '../views/My/My'
import PersonalMsg from '../views/My/PersonalMsg'
import MyTicket from '../views/My/MyTicket'
import MyCollected from '../views/My/MyCollected'
import AddressEdit from '../views/My/AddressEdit'
import SafeCenter from '../views/My/SafeCenter'
import ShopDetail from '../views/ShopDetail'
import Login from '../views/Login'
import Pay from '../views/Pay'
import Address from '../views/Address'
import Payed from '../views/Payed'

const routerConfig = [
    {
        path:'/',
        element:<Main></Main>,
        children:[
            {
                path:'',
                element:<Home></Home>
            },
            {
                path:'Menu',
                element:<Menu></Menu>
            },
            {
                path:'Shopbag',
                element:<Shopbag></Shopbag>
            },
            {
                path:'My',
                element:<My></My>
            },
        ]
    },
    {
        path:'/shopDetail/:id',
        element:<ShopDetail></ShopDetail>
    },
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'/pay',
        element:<Pay></Pay>
    },
    {
        path:'/address',
        element:<Address></Address>
    },
    {
        path:'/payed',
        element:<Payed></Payed>
    },
    {
        path:'PersonalMsg',
        element:<PersonalMsg></PersonalMsg>
    },
    {
        path:'MyTicket',
        element:<MyTicket></MyTicket>
    },
    {
        path:'MyCollected',
        element:<MyCollected></MyCollected>
    },
    {
        path:'AddressEdit',
        element:<AddressEdit></AddressEdit>
    },
    {
        path:'SafeCenter',
        element:<SafeCenter></SafeCenter>
    },
]

export const router = routerConfig